/*
Copyright 2022 The Numaproj Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

// Code generated by Openapi Generator. DO NOT EDIT.

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Lifecycle {
    /// DeleteGracePeriodSeconds used to delete pipeline gracefully Deprecated: Use DeletionGracePeriodSeconds instead
    #[serde(
        rename = "deleteGracePeriodSeconds",
        skip_serializing_if = "Option::is_none"
    )]
    pub delete_grace_period_seconds: Option<i64>,
    /// DeletionGracePeriodSeconds used to delete pipeline gracefully
    #[serde(
        rename = "deletionGracePeriodSeconds",
        skip_serializing_if = "Option::is_none"
    )]
    pub deletion_grace_period_seconds: Option<i64>,
    /// DesiredPhase used to bring the pipeline from current phase to desired phase
    #[serde(rename = "desiredPhase", skip_serializing_if = "Option::is_none")]
    pub desired_phase: Option<String>,
    /// PauseGracePeriodSeconds used to pause pipeline gracefully
    #[serde(
        rename = "pauseGracePeriodSeconds",
        skip_serializing_if = "Option::is_none"
    )]
    pub pause_grace_period_seconds: Option<i64>,
}

impl Lifecycle {
    pub fn new() -> Lifecycle {
        Lifecycle {
            delete_grace_period_seconds: None,
            deletion_grace_period_seconds: None,
            desired_phase: None,
            pause_grace_period_seconds: None,
        }
    }
}
